package first.endtoend

/**
 * Created with IntelliJ IDEA.
 * User: Olfa
 */
class Category
{

    String name;

    static hasMany = [families: Family]

    Date dateCreated
    Date lastUpdated

    static constraints = {
        name(unique: true)
    }

    @Override
    public String toString()
    {
        return "category : " + this.name;
    }


}
